<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg bgystz">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content bgys">
        <form class="form-horizontal m" id="form-reality-edit" th:object="${reality}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<input id="pointId" name="pointId" th:field="*{pointId}"  type="hidden">
			<input id="basicsId" name="basicsId" th:field="*{basicsId}"  type="hidden">
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">电量：</label>
					<div class="col-sm-8">
						<input id="eleAccount" name="eleAccount" th:field="*{eleAccount}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">电价：</label>
					<div class="col-sm-8">
						<input id="elePrice" name="elePrice" th:field="*{elePrice}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">电费：</label>
					<div class="col-sm-8">
						<input id="eleF" name="eleF" th:field="*{eleF}" class="form-control" type="text" readonly="true">
					</div>
				</div>
			</div>

			<div class="col-md-4">
			</div>
			<div class="col-md-12">
			</div>

			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">基金及附加单价：</label>
					<div class="col-sm-8">
						<input id="jJPrice" name="jJPrice" th:field="*{jJPrice}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">政府性基金及附加金额：</label>
					<div class="col-sm-8">
						<input id="zzJJPrice" name="zzJJPrice" th:field="*{zzJJPrice}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-4">
			</div>
			<div class="col-md-12">
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">到户电价：</label>
					<div class="col-sm-8">
						<input id="dHPrice" name="dHPrice" th:field="*{dHPrice}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">到户电费：</label>
					<div class="col-sm-8">
						<input id="dHAcount" name="dHAcount" th:field="*{dHAcount}" class="form-control"
							   type="text" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<a class="btn btn-success" onclick="submitHandler()">
					<i class="fa fa-hand-peace-o"></i> 刷新
				</a>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "service/reality"
		$("#form-reality-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
//	            $.operate.saveAndRefer(prefix + "/edit", $('#form-reality-edit').serialize());
	            window.location.reload();
	        }
	    }
	</script>
</body>
</html>
